﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using QxFramework.Core;
public class CameraFollow : ItemFunc
{
    public override void KeyDownPreference()
    {
        base.KeyDownPreference();
        MessageManager.Instance.Get<CameraController.CameraFollowType>().DispatchMessage(CameraController.CameraFollowType.FollowCore,this, new CameraController.CameraFollowArgs { player=this.GetComponent<CombinableItem>()});
    }
    private void OnEnable()
    {
    //    KeyDownPreference();
    }
}
